AESetInteractionAllowed
AESetInteractionAllowed Allow server interaction with user
#include <AppleEvents.h> Apple Event Manager
AEInteractionAllowed level ; see below
returns Error Code; 0 = no error
You can use AESetInteractionAllowed to specify your application's user
interaction preferences for responding to an Apple event.
AESetInteractionAllowed sets the user interaction level for a server
application's response to an Apple event. The level parameter must be one of
three flags: kAEInteractWithSelf, kAEInteractWithLocal, or
kAEInteractWithAll.
Specifying the kAEInteractWithSelf flag allows the server application to
interact with the user in response to an Apple event only when the client
application and server application are the same-that is, only when the
application is sending the Apple event to itself.
Specifying the kAEInteractWithLocal flag allows the server application to
interact with the user in response to an Apple event only if the client
application is on the same computer as the server application; this is the
default if the AESetInteractionAllowed function is not used.
Specifying the kAEInteractWithAll flag allows the server application to
interact with the user in response to an Apple event sent from any client
application on any computer.
Result codes
noErr (0) No error